/*
 * Copyright 2011 Angel Sanadinov
 *
 * This file is part of VBox WMI.
 *
 * VBox WMI is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * VBox WMI is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with VBox WMI.  If not, see <http://www.gnu.org/licenses/>.
 */

package Utilities.Interfaces;

/**
 * Each class implementing the <code>SelfValidating</code> interface is bound to
 * implement the method <i>isValid()</i> with which the object can perform validations
 * on itself and return the results to an interested (calling) entity.
 *
 * @see SelfValidating#isValid()
 *
 * @author Angel Sanadinov
 */
public interface SelfValidating
{
    /**
     * Each class must implement this method with sensible validations for itself
     * and adhere to the specified return values.
     *
     * @return <code>true</code> if the object is valid or <code>false</code> otherwise
     */
    public abstract boolean isValid();
}
